package com.hcj.util.commonUtil;
/**
 * url特殊字符16进制还原
* @author weir 
* 2017年9月16日 下午5:13:56 
*
 */
public class SpecialCharUtil {

	public static String toString(String s) {
		return s.replace("%25", "%")
				.replace("%2B", "+")
				.replace("%20", " ")
				.replace("%2F", "/")
				.replace("%3F", "?")
				.replace("%23", "#")
				.replace("%26", "&")
				.replace("%3D", "=");
	}
	
	public static void main(String[] args) {
		String s = "dsdsadewew213213%2Bdasds%26wq12312";
		System.out.println(s);
		System.out.println(toString(s));
	}
}
